<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>${server.name} - PyHMon Web Interface</title>
</head>
<body>
    <h2>Server: ${server.name}</h2>
    <form action="save_server" method="post">
	<input type="hidden" name="server_id" value="${server.server_id}"/>
	Name: <input type="text" name="name" value="${server.name}"/><br />
	Address: <input type="text" name="addr" value="${server.addr}"/><br />
	Port: <input type="text" name="port" value="${server.port}"/><br />
	Alert Port: <input type="text" name="alertport" 
	    value="${server.alertport}"/><br />
	Protocol: <select name="proto">
	    <option value="0" py:attrs="{'selected':'yes'}
		if server.proto == 0 else {}">
	        PyHMon</option>
            <option value="10" py:attrs="{'selected':'yes'}
		if server.proto == 10 else {}">
	        PyHMon SSL</option>
	</select><br />
	Inactive? <input type="checkbox" py:attrs="{'checked':'yes'} 
	    if server.status == 2 else {}" name="status" value="2" /><br />
	<input type = "submit" name="submit" value="Save"/>
    </form>
    <a href="${tg.url('/index?srvid=' + str(server.server_id))}">Nodes</a>
    <a href="${tg.url('/server_list?parentid=' + 
	str(server.server_id))}">Children</a>
    <a href="${tg.url('/server_list?childid=' + 
	str(server.server_id))}">Parents</a>
</body>
</html>
